package com.runjian.rundo.iot.agent.common.message;

import io.netty.buffer.ByteBuf;

/**
 * 拆包后或平台下发的完整消息默认实现
 *
 * @author LiGang
 */
public class DefaultEncodedMessage implements EncodedMessage {

    private final ByteBuf payload;

    public DefaultEncodedMessage(ByteBuf payload) {
        this.payload = payload;
    }

    @Override
    public ByteBuf getPayload() {
        return this.payload;
    }
}
